<template>
    <div>
        <!-- 文件选择框，仅接受视频文件 -->
        <input type="file" @change="handleFileChange"/>
        <div v-if="exportData.uploadProgress > 0">
            Upload Progress: {{exportData.uploadProgress }}%
        </div>
    </div>
</template>

<script>

import {exportData,handleFileChange} from "@/utils/fileUtil";
export default {
    data() {
        return {
            exportData:null,
        };
    },
    created() {
      this.exportData = exportData
    },
    methods: {
        // 处理文件选择事件
        async handleFileChange(event) {
            await handleFileChange(event);
        },
    },
};
</script>

<style scoped>

</style>
